﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AppService.Model;

namespace AppService.Comparer
{
    public class DoubleColorBallComparer : IEqualityComparer<DoubleColorBall>
    {
        public bool Equals(DoubleColorBall x, DoubleColorBall y)
        {
            return x.Issue == y.Issue && x.Year == y.Year;
        }

        public int GetHashCode(DoubleColorBall x)
        {
            return x.Issue.GetHashCode() ^ x.Year.GetHashCode();
        }
    }
}
